<?php $topics = $this->getAllTopic();?>
<a class="btn btn-blue" href="<?php echo Epic::getUrl('admin/topic/addTopic')?>">Add Topic</a>
<div class="box round first grid">
                <h2>
                    Topics</h2>
                <div class="block">
                    <table class="data display datatable" id="example">
					<thead>
						<tr>
							<th>ID</th>
							<th>Name</th>
							<th>Tool</th>
						</tr>
					</thead>
					<tbody>
						<?php if ($topics!=null):?>
							<?php foreach ($topics as $topic ):?>
								<tr id="topic_<?php echo $topic['id_topic']?>">
									<td><?php echo $topic['id_topic']?></td>
									<td><?php echo $topic['name']?></td>
									<td>
										<a class="btn-mini btn-black btn-view" href="<?php echo Epic::getUrl('admin/topic/viewTopic',array('id_topic'=>$topic['id_topic']))?>"><span></span>View</a>
										<a class="btn-mini btn-black btn-edit" href="<?php echo Epic::getUrl('admin/topic/addTopic',array('id_topic'=>$topic['id_topic']))?>"><span></span>Edit</a>
										<a class="btn-mini btn-black btn-delete" onclick="return deleter_topic(<?php echo $topic['id_topic']?>);"><span></span>Delete</a>
									</td>
								</tr>
							<?php endforeach;?>
						<?php endif;?>
					</tbody>
				</table>
                </div>
             </div>